var form = layui.form;
layer = parent.layer === undefined ? layui.layer : top.layer,
    $ = layui.jquery;
$.get("/user/head",function(res){
    //console.log("head"+res);
    $(".userAvatar").attr("src",res);
});
function editPwd() {
    layui.layer.open({
        type: 2,
        title: '修改密码',
        content: '/user/toEditPwd',
        shade: 0.5,
        area : ["500px","520px"],
        maxmin: true
    });
}